package com.thomsonreuters.ce.edps.model.impl;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.thomsonreuters.ce.edps.model.IPhysicalAsset;
import com.thomsonreuters.ce.edps.model.IPhysicalAssetName;


/** @author Hibernate CodeGenerator */
public class PhysicalAssetName implements Serializable, IPhysicalAssetName {

    /** identifier field */
    private BigDecimal id;

    /** persistent field */
    private String value;

    /** persistent field */
    private Date effectiveFrom;

    /** nullable persistent field */
    private Date effectiveTo;

    /** persistent field */
    private BigDecimal languagePermId;

    /** persistent field */
    private String createBy;

    /** persistent field */
    private Date createDate;

    /** persistent field */
    private String modifyBy;

    /** persistent field */
    private Date modifyDate;

    /** persistent field */
    private IPhysicalAsset physicalAsset;

    /** full constructor */
    public PhysicalAssetName(String value, Date effectiveFrom, Date effectiveTo, BigDecimal languagePermId, String createBy, Date createDate, String modifyBy, Date modifyDate, IPhysicalAsset physicalAsset) {
        this.value = value;
        this.effectiveFrom = effectiveFrom;
        this.effectiveTo = effectiveTo;
        this.languagePermId = languagePermId;
        this.createBy = createBy;
        this.createDate = createDate;
        this.modifyBy = modifyBy;
        this.modifyDate = modifyDate;
        this.physicalAsset = physicalAsset;
    }

    /** default constructor */
    public PhysicalAssetName() {
    }

    /** minimal constructor */
    public PhysicalAssetName(String value, Date effectiveFrom, BigDecimal languagePermId, String createBy, Date createDate, String modifyBy, Date modifyDate, IPhysicalAsset physicalAsset) {
        this.value = value;
        this.effectiveFrom = effectiveFrom;
        this.languagePermId = languagePermId;
        this.createBy = createBy;
        this.createDate = createDate;
        this.modifyBy = modifyBy;
        this.modifyDate = modifyDate;
        this.physicalAsset = physicalAsset;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getId()
	 */
    @Override
	public BigDecimal getId() {
        return this.id;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setId(java.math.BigDecimal)
	 */
    @Override
	public void setId(BigDecimal id) {
        this.id = id;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getValue()
	 */
    @Override
	public String getValue() {
        return this.value;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setValue(java.lang.String)
	 */
    @Override
	public void setValue(String value) {
        this.value = value;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getEffectiveFrom()
	 */
    @Override
	public Date getEffectiveFrom() {
        return this.effectiveFrom;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setEffectiveFrom(java.util.Date)
	 */
    @Override
	public void setEffectiveFrom(Date effectiveFrom) {
        this.effectiveFrom = effectiveFrom;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getEffectiveTo()
	 */
    @Override
	public Date getEffectiveTo() {
        return this.effectiveTo;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setEffectiveTo(java.util.Date)
	 */
    @Override
	public void setEffectiveTo(Date effectiveTo) {
        this.effectiveTo = effectiveTo;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getLanguagePermId()
	 */
    @Override
	public BigDecimal getLanguagePermId() {
        return this.languagePermId;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setLanguagePermId(java.math.BigDecimal)
	 */
    @Override
	public void setLanguagePermId(BigDecimal languagePermId) {
        this.languagePermId = languagePermId;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getCreateBy()
	 */
    @Override
	public String getCreateBy() {
        return this.createBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setCreateBy(java.lang.String)
	 */
    @Override
	public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getCreateDate()
	 */
    @Override
	public Date getCreateDate() {
        return this.createDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setCreateDate(java.util.Date)
	 */
    @Override
	public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getModifyBy()
	 */
    @Override
	public String getModifyBy() {
        return this.modifyBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setModifyBy(java.lang.String)
	 */
    @Override
	public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getModifyDate()
	 */
    @Override
	public Date getModifyDate() {
        return this.modifyDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setModifyDate(java.util.Date)
	 */
    @Override
	public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#getPhysicalAsset()
	 */
    @Override
	public IPhysicalAsset getPhysicalAsset() {
        return this.physicalAsset;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#setPhysicalAsset(com.thomsonreuters.ce.edps.model.impl.IPhysicalAsset)
	 */
    @Override
	public void setPhysicalAsset(IPhysicalAsset physicalAsset) {
        this.physicalAsset = physicalAsset;
    }

    /* (non-Javadoc)
	 * @see com.thomsonreuters.ce.edps.model.impl.IPhysicalAssetName#toString()
	 */
    @Override
	public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
